.class public Lcom/esfile/screen/recorder/videos/gifconvert/i;
.super Ljava/lang/Object;
.source "GifConvertHelper.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/videos/gifconvert/i$a;
    }
.end annotation


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method private static a()Ljava/lang/String;
    .locals 5

    .line 24
    invoke-static {}, Les/qc$e;->e()Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_0

    const/4 v0, 0x0

    return-object v0

    .line 25
    :cond_0
    new-instance v1, Ljava/text/SimpleDateFormat;

    const-string v2, "yyyyMMdd_HHmmss"

    invoke-direct {v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    new-instance v2, Ljava/util/Date;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    invoke-direct {v2, v3, v4}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v1, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v1

    .line 26
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v0, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, ".gif"

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;Les/ae;Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;Lcom/esfile/screen/recorder/videos/gifconvert/i$a;)V
    .locals 10

    .line 1
    invoke-static {p1}, Lcom/esfile/screen/recorder/utils/i;->f(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 2
    sget p0, Les/z4;->durec_video_not_found:I

    invoke-static {p0}, Les/ec;->a(I)V

    .line 3
    invoke-interface {p4}, Lcom/esfile/screen/recorder/videos/gifconvert/i$a;->b()V

    return-void

    .line 4
    :cond_0
    invoke-virtual {p3}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->d()V

    .line 5
    invoke-static {}, Lcom/esfile/screen/recorder/videos/gifconvert/i;->a()Ljava/lang/String;

    move-result-object v3

    .line 6
    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 7
    invoke-interface {p4}, Lcom/esfile/screen/recorder/videos/gifconvert/i$a;->b()V

    return-void

    .line 8
    :cond_1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "save gif path = "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "gfcnvrthlpr"

    invoke-static {v1, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v0, 0x1

    new-array v4, v0, [Z

    const/4 v1, 0x0

    aput-boolean v1, v4, v1

    new-array v8, v0, [I

    aput v1, v8, v1

    .line 9
    new-instance v9, Lcom/esfile/screen/recorder/videos/gifconvert/f;

    move-object v0, v9

    move-object v1, p2

    move-object v2, p1

    move-object v5, p0

    move-object v6, p4

    move-object v7, p3

    invoke-direct/range {v0 .. v8}, Lcom/esfile/screen/recorder/videos/gifconvert/f;-><init>(Les/ae;Ljava/lang/String;Ljava/lang/String;[ZLandroid/content/Context;Lcom/esfile/screen/recorder/videos/gifconvert/i$a;Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;[I)V

    invoke-static {v9}, Les/xc;->a(Ljava/lang/Runnable;)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;I)V
    .locals 0

    .line 23
    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->setProgress(I)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/gifconvert/i$a;Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;Landroid/content/Context;Ljava/lang/String;)V
    .locals 0

    if-eqz p0, :cond_0

    .line 20
    invoke-interface {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/i$a;->onSuccess()V

    .line 21
    :cond_0
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->a()V

    const/4 p0, 0x4

    .line 22
    invoke-static {p2, p3, p0}, Lcom/esfile/screen/recorder/videos/edit/DuVideoEditResultActivity;->a(Landroid/content/Context;Ljava/lang/String;I)V

    return-void
.end method

.method static synthetic a(Les/ae;Ljava/lang/String;Ljava/lang/String;[ZLandroid/content/Context;Lcom/esfile/screen/recorder/videos/gifconvert/i$a;Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;[I)V
    .locals 8

    .line 10
    new-instance v7, Lcom/esfile/screen/recorder/videos/gifconvert/g;

    move-object v0, v7

    move-object v1, p3

    move-object v2, p4

    move-object v3, p2

    move-object v4, p5

    move-object v5, p6

    move-object v6, p7

    invoke-direct/range {v0 .. v6}, Lcom/esfile/screen/recorder/videos/gifconvert/g;-><init>([ZLandroid/content/Context;Ljava/lang/String;Lcom/esfile/screen/recorder/videos/gifconvert/i$a;Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;[I)V

    invoke-virtual {p0, p1, p2, v7}, Les/ae;->a(Ljava/lang/String;Ljava/lang/String;Les/zd;)V

    .line 11
    invoke-virtual {p6}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    new-instance p0, Lcom/esfile/screen/recorder/videos/gifconvert/a;

    invoke-direct {p0, p6}, Lcom/esfile/screen/recorder/videos/gifconvert/a;-><init>(Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;)V

    invoke-static {p0}, Les/xc;->b(Ljava/lang/Runnable;)V

    return-void
.end method

.method static synthetic a([ZLandroid/content/Context;Ljava/lang/String;Lcom/esfile/screen/recorder/videos/gifconvert/i$a;Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;[III)V
    .locals 2

    .line 12
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "save gif: current = "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, " all = "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "gfcnvrthlpr"

    invoke-static {v1, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v0, 0x0

    if-ne p6, p7, :cond_0

    const/4 p5, 0x1

    .line 13
    aput-boolean p5, p0, v0

    .line 14
    invoke-static {p1, p2, v0}, Lcom/esfile/screen/recorder/utils/h;->a(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 15
    new-instance p0, Lcom/esfile/screen/recorder/videos/gifconvert/e;

    invoke-direct {p0, p3, p4, p1, p2}, Lcom/esfile/screen/recorder/videos/gifconvert/e;-><init>(Lcom/esfile/screen/recorder/videos/gifconvert/i$a;Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;Landroid/content/Context;Ljava/lang/String;)V

    invoke-static {p0}, Les/xc;->b(Ljava/lang/Runnable;)V

    goto :goto_0

    .line 16
    :cond_0
    aget p0, p5, v0

    if-lt p6, p0, :cond_1

    .line 17
    aput p6, p5, v0

    .line 18
    new-instance p0, Ljava/lang/StringBuilder;

    invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V

    const-string p1, "save gif: set progress"

    invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0, p6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    invoke-static {v1, p0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 19
    new-instance p0, Lcom/esfile/screen/recorder/videos/gifconvert/d;

    invoke-direct {p0, p4, p6}, Lcom/esfile/screen/recorder/videos/gifconvert/d;-><init>(Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;I)V

    invoke-static {p0}, Les/xc;->b(Ljava/lang/Runnable;)V

    :cond_1
    :goto_0
    return-void
.end method
